import request from '@/utils/request'
/*
账本管理相关接口
*/
const api_name = '/system/financialLabel'

export default {
  // 分页查询
  getPage(data) {
    return request({
      url: `${api_name}/getPage`,
      method: 'post',
      data: data
    })
  },
  // 根据Id查询
  getById(id) {
    return request({
      url: `${api_name}/getById/${id}`,
      method: 'get'
    })
  },
  // 对数据进行修改
  updateById(data) {
    return request({
      url: `${api_name}/updateById`,
      method: 'post',
      data: data
    })
  },
  // 删除标签
  removeById(id) {
    return request({
      url: `${api_name}/removeById/${id}`,
      method: 'get'
    })
  },
  // 新增标签
  add(data) {
    return request({
      url: `${api_name}/save`,
      method: 'post',
      data: data
    })
  }
}
